package com.myFwk.model;

import com.myFwk.domain.SysMenu;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;

/**
 * @author GL
 * @version 1.0
 * @Tetile: 登录返回值
 * @date 2021/9/1 21:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "登录结果")
public class LoginResult {
    /**
     * 登录产生的Token
     */
    private String token;
    /**
     * 前端菜单数据
     */
    private List<SysMenu> menus;
    /**
     * 权限数据
     */
    private List<SimpleGrantedAuthority> authorities;


}
